package cn.xyfmzmy.composite.express;

/**
 * 加法表达式
 */
public class AddExperssion extends BinaryOperatorExperssion{


    public AddExperssion(Expression left, Expression right) {
        super(left, right);
    }


    @Override
    public int getValue() {
        return left.getValue() + right.getValue();
    }
}

